package com.xf.system.http.req.role;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author xiefengf
 */
@ApiModel(description = "新增角色入参")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RoleAddReqDTO {

    @Schema(description = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @Schema(description = "角色权限字符串")
    @NotBlank(message = "角色权限字符串不能为空")
    private String roleKey;

    @Schema(description = "显示顺序")
    @NotNull(message = "显示顺序不能为空")
    private Integer roleSort;

    @Schema(description = "角色状态（0正常 1停用）")
    private String status;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "菜单Id集合")
    private List<Long> menuIdList;

}
